2005-06-10 Federico Mena Quintero <federico@ximian.com>
* xdgmime.c (xdg_mime_init_from_directory): Pass the correct size
to realloc(). Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3506.
+2005-06-10 Federico Mena Quintero <federico@ximian.com>
+
+ * xdgmime.c (xdg_mime_init_from_directory): Pass the correct size
+ to realloc(). Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3506.
+
2005-06-09 Matthias Clasen <mclasen@redhat.com>
* xdgmimemagic.c: Don't declare errno, including errno.h
list->next = dir_time_list;
dir_time_list = list;
- caches = realloc (caches, n_caches + 1);
+ caches = realloc (caches, sizeof (XdgMimeCache *) * (n_caches + 1));
caches[n_caches] = cache;
n_caches++;